using System.Collections.Generic;
using NodeCanvas.Framework;
using ParadoxNotion.Design;

namespace Yoozoo.Gameplay.Liberty.AI.Node
{
    [Category("Ggame/Liberty")]
    public class NpcHasTarget : AIConditionBaseNode
    {
        public BBParameter<TargetType> targetType = TargetType.CurrentLockTarget;

        protected override bool OnCheck()
        {
            AIEntity target = _entity.battleAgent.GetTarget(targetType.value);
            
            return target;
        }
    }
}